import 'package:flutter/material.dart';

class HomePage extends StatelessWidget {
const HomePage({ super.key });

  @override
  Widget build(BuildContext context){
    return Container(
      color: Colors.amber,
      child:  Column(
        mainAxisAlignment: MainAxisAlignment.center,
         children: [
          ElevatedButton(onPressed: () {
           Navigator.pushNamed(context, '/detail');
          }, child: const Text("点击去详情"))
         ],
      
       )
    );
    
  }
}